package com.hjwoo.app.baseviews;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import java.util.List;

/**
 * Created by yangchuan on 2016/5/12.
 */
public abstract class BaseLiearAdapter<T>
{
    public List<T>        list;
    public Context        context;
    public LayoutInflater mInflater;
    public ViewGroup      parent;

    public BaseLiearAdapter(Context context, List<T> list)
    {
        this.list = list;
        this.context = context;
        this.mInflater = LayoutInflater.from(context);
    }

    public void setParent(ViewGroup parent)
    {
        this.parent = parent;
        loadView();
    }

    public abstract void loadView();
}
 
